﻿using SmartPlant.Model;
using SqlSugar;
using System;

namespace DbContext
{
    /// <summary>
    ///
    ///</summary>
    [SugarTable("ANALYZER")]
    public class Analyzer:MetaDataEntity
    {
        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PROJ_ID")]
        public decimal ProjId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "SITE_ID")]
        public decimal SiteId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CHG_NUM")]
        public decimal ChgNum { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PLANT_ID")]
        public decimal PlantId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "AREA_ID")]
        public decimal AreaId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "UNIT_ID")]
        public decimal UnitId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CHG_STATUS")]
        public string ChgStatus { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "USER_NAME")]
        public string UserName { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CHG_DATE")]
        public DateTime? ChgDate { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CMPNT_ID", IsPrimaryKey = true)]
        public decimal CmpntId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_STAT", IsPrimaryKey = true)]
        public string PdStat { get; set; } = "R";

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "CASE_ID", IsPrimaryKey = true)]
        public decimal CaseId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_A_ALARM_LOW")]
        public decimal? PdAAlarmLow
        {
            get
            {
                return _PdAAlarmLow;
            }
            set
            {
                _PdAAlarmLow = value;
                OnPropertyChanged(nameof(PdAAlarmLow));
            }

        }
        private decimal? _PdAAlarmLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_A_ALARM_LOW_LOW")]
        public decimal? PdAAlarmLowLow
        {
            get
            {
                return _PdAAlarmLowLow;
            }
            set
            {
                _PdAAlarmLowLow = value;
                OnPropertyChanged(nameof(PdAAlarmLowLow));
            }

        }
        private decimal? _PdAAlarmLowLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_A_ALARM_LOW_LOW_LOW")]
        public decimal? PdAAlarmLowLowLow
        {
            get
            {
                return _PdAAlarmLowLowLow;
            }
            set
            {
                _PdAAlarmLowLowLow = value;
                OnPropertyChanged(nameof(PdAAlarmLowLowLow));
            }

        }
        private decimal? _PdAAlarmLowLowLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_A_ALARM_HIGH")]
        public decimal? PdAAlarmHigh
        {
            get
            {
                return _PdAAlarmHigh;
            }
            set
            {
                _PdAAlarmHigh = value;
                OnPropertyChanged(nameof(PdAAlarmHigh));
            }

        }
        private decimal? _PdAAlarmHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_A_ALARM_HIGH_HIGH")]
        public decimal? PdAAlarmHighHigh
        {
            get
            {
                return _PdAAlarmHighHigh;
            }
            set
            {
                _PdAAlarmHighHigh = value;
                OnPropertyChanged(nameof(PdAAlarmHighHigh));
            }

        }
        private decimal? _PdAAlarmHighHigh;


        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_A_ALARM_HIGH_HIGH_HIGH")]
        public decimal? PdAAlarmHighHighHigh
        {
            get
            {
                return _PdAAlarmHighHighHigh;
            }
            set
            {
                _PdAAlarmHighHighHigh = value;
                OnPropertyChanged(nameof(PdAAlarmHighHighHigh));
            }

        }
        private decimal? _PdAAlarmHighHighHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_A_TRIP_LOW")]
        public decimal? PdATripLow
        {
            get
            {
                return _PdATripLow;
            }
            set
            {
                _PdATripLow = value;
                OnPropertyChanged(nameof(PdATripLow));
            }

        }
        private decimal? _PdATripLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_A_TRIP_LOW_LOW")]
        public decimal? PdATripLowLow
        {
            get
            {
                return _PdATripLowLow;
            }
            set
            {
                _PdATripLowLow = value;
                OnPropertyChanged(nameof(PdATripLowLow));
            }

        }
        private decimal? _PdATripLowLow;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_A_TRIP_LOW_LOW_LOW")]
        public decimal? PdATripLowLowLow
        {
            get
            {
                return _PdATripLowLowLow;
            }
            set
            {
                _PdATripLowLowLow = value;
                OnPropertyChanged(nameof(PdATripLowLowLow));
            }

        }
        private decimal? _PdATripLowLowLow;


        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_A_TRIP_HIGH")]
        public decimal? PdATripHigh         {
            get
            {
                return _PdATripHigh;
            }
            set
            {
                _PdATripHigh = value;
                OnPropertyChanged(nameof(PdATripHigh));
            }

        }
        private decimal? _PdATripHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_A_TRIP_HIGH_HIGH")]
        public decimal? PdATripHighHigh
        {
            get
            {
                return _PdATripHighHigh;
            }
            set
            {
                _PdATripHighHigh = value;
                OnPropertyChanged(nameof(PdATripHighHigh));
            }

        }
        private decimal? _PdATripHighHigh;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_A_TRIP_HIGH_HIGH_HIGH")]
        public decimal? PdATripHighHighHigh
        {
            get
            {
                return _PdATripHighHighHigh;
            }
            set
            {
                _PdATripHighHighHigh = value;
                OnPropertyChanged(nameof(PdATripHighHighHigh));
            }

        }
        private decimal? _PdATripHighHighHigh;


        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_A_TRIP_ALARM_UID")]
        public string PdATripAlarmUid
        {
            get
            {
                return _PdATripAlarmUid;
            }
            set
            {
                _PdATripAlarmUid = value;
                OnPropertyChanged(nameof(PdATripAlarmUid));
            }

        }
        private string _PdATripAlarmUid;


        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_A_TRIP_ALARM_UFLG")]
        public string PdATripAlarmUflg
        {
            get
            {
                return _PdATripAlarmUflg;
            }
            set
            {
                _PdATripAlarmUflg = value;
                OnPropertyChanged(nameof(PdATripAlarmUflg));
            }

        }
        private string _PdATripAlarmUflg;

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_PARAM_ACC")]
        public decimal? PdParamAcc { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_PARAM_ACC_UID")]
        public string PdParamAccUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_PARAM_ACC_UFLG")]
        public string PdParamAccUflg { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_PARAM_ACC_U_P_FLG")]
        public string PdParamAccUPFlg { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_PARAM_REPEAT")]
        public decimal? PdParamRepeat { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_PARAM_REPEAT_UID")]
        public string PdParamRepeatUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_PARAM_REPEAT_UFLG")]
        public string PdParamRepeatUflg { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_PARAM_REPEAT_U_P_FLG")]
        public string PdParamRepeatUPFlg { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_PARAM_RANGE_MIN")]
        public decimal? PdParamRangeMin { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_PARAM_RANGE_MAX")]
        public decimal? PdParamRangeMax { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_PARAM_UID")]
        public string PdParamUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_PARAM_UFLG")]
        public string PdParamUflg { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_PARAM_U_P_FLG")]
        public string PdParamUPFlg { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_UNIT_PERCENT")]
        public string PdUnitPercent { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "ENG_REF_ID")]
        public decimal? EngRefId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "ENG_PROJ_ID")]
        public decimal? EngProjId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "REV_ID")]
        public decimal RevId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "DWG_ID")]
        public decimal DwgId { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_DETECTION_LIMIT_MIN")]
        public decimal? PdDetectionLimitMin { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_DETECTION_LIMIT_UID")]
        public string PdDetectionLimitUid { get; set; }

        /// <summary>
        ///
        ///</summary>
        [SugarColumn(ColumnName = "PD_GEN_ID")]
        public decimal PdGenId { get; set; }
    }
}